package Test_319_4;

public class TestCompany {

    public static void main(String[] args) {

        //若干各种类型的员工放在一个ColaEmployee数组里，并单元出数组中每个员工当月的工资
        ColaEmployee[] y = new ColaEmployee[6];

        y[0] = new HourlyEmployee("张三",5,2,150,10);
        y[1] = new HourlyEmployee("李四", 4, 4, 170, 13);
        y[2] = new SalariedEmployee("王五", 5, 6, 2000);
        y[3] = new SalariedEmployee("小明", 4, 3, 2000);
        y[4] = new SalesEmployee("小花", 9, 9, 20000, 0.13);
        y[5] = new SalesEmployee("小玲",12, 8, 20000, 0.13);
    }
}
